package cn.humaohua.study.yanmo_design_pattern.ch21;

public class PropertyTerminalExpression extends ReadXmlExpression {
    private String propName;

    public PropertyTerminalExpression(String propName) {
        this.propName = propName;
    }

    @Override
    public String[] interpret(Context c) {
        String[] ss = new String[1];
        ss[0] = c.getPreEle().getAttribute(this.propName);
        return ss;
    }
}
